import asyncio
# from aiohttp import ClientSession
import aiohttp

tasks = []
url = "https://www.baidu.com"


async def get_baidu(url):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as r:
            resp_text = await r.text()
            print(resp_text)


if __name__ == '__main__':
    asyncio.run(get_baidu(url))
